package com.wtwd.wtwddevice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.wtwd.device.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2024-06-14
 */
@ApiModel(value="Upgrade对象", description="")
public class Upgrade extends BaseEntity {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "添加文件的用户id")
    private Long userId;

    @ApiModelProperty(value = "手表类型")
    private String watchId;

    @ApiModelProperty(value = "版本号")
    private String version;

    @ApiModelProperty(value = "文件类型 1:文件 2:图片 3:安装包")
    private Integer fileType;

    @ApiModelProperty(value = "文件地址  软件包地址")
    private String filePath;

    @ApiModelProperty(value = "软件包大小")
    private Integer fileSize;

    @ApiModelProperty(value = "上传时间")
    private Long upTime;

    @ApiModelProperty(value = "升级成功数量")
    private Integer upgradeNum;

    @ApiModelProperty(value = "资源包地址")
    private String resourcePackagePath;

    @ApiModelProperty(value = "资源包大小")
    private Integer resourcePackageSize;

    @ApiModelProperty(value = "版本名")
    private String name;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getWatchId() {
        return watchId;
    }

    public void setWatchId(String watchId) {
        this.watchId = watchId;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Integer getFileType() {
        return fileType;
    }

    public void setFileType(Integer fileType) {
        this.fileType = fileType;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Integer getFileSize() {
        return fileSize;
    }

    public void setFileSize(Integer fileSize) {
        this.fileSize = fileSize;
    }

    public Long getUpTime() {
        return upTime;
    }

    public void setUpTime(Long upTime) {
        this.upTime = upTime;
    }

    public Integer getUpgradeNum() {
        return upgradeNum;
    }

    public void setUpgradeNum(Integer upgradeNum) {
        this.upgradeNum = upgradeNum;
    }

    public String getResourcePackagePath() {
        return resourcePackagePath;
    }

    public void setResourcePackagePath(String resourcePackagePath) {
        this.resourcePackagePath = resourcePackagePath;
    }

    public Integer getResourcePackageSize() {
        return resourcePackageSize;
    }

    public void setResourcePackageSize(Integer resourcePackageSize) {
        this.resourcePackageSize = resourcePackageSize;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Upgrade{" +
        "id=" + id +
        ", userId=" + userId +
        ", watchId=" + watchId +
        ", version=" + version +
        ", fileType=" + fileType +
        ", filePath=" + filePath +
        ", fileSize=" + fileSize +
        ", upTime=" + upTime +
        ", upgradeNum=" + upgradeNum +
        ", resourcePackagePath=" + resourcePackagePath +
        ", resourcePackageSize=" + resourcePackageSize +
        ", name=" + name +
        "}";
    }
}
